/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author wangyazhou
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2013-10-10 下午1:19:44          wangyazhou        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Entity
@Table(name = "nw_indicator_def")
public class NwIndicatorDef implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String display;
    private String oid;
    private int data_type;
    private int time_avg;
    private String yunit;
    private int graph_type;
    private String description;

    @Id
    @Column(name = "ID", unique = true, nullable = false, precision = 9, scale = 0)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "NAME", length = 256)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "display", length = 256)
    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    @Column(name = "oid", length = 256)
    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    @Column(name = "data_type", precision = 1, scale = 0)
    public int getData_type() {
        return data_type;
    }

    public void setData_type(int data_type) {
        this.data_type = data_type;
    }

    @Column(name = "time_avg", precision = 1, scale = 0)
    public int getTime_avg() {
        return time_avg;
    }

    public void setTime_avg(int time_avg) {
        this.time_avg = time_avg;
    }

    @Column(name = "yunit", length = 128)
    public String getYunit() {
        return yunit;
    }

    public void setYunit(String yunit) {
        this.yunit = yunit;
    }

    @Column(name = "graph_type", precision = 2, scale = 0)
    public int getGraph_type() {
        return graph_type;
    }

    public void setGraph_type(int graph_type) {
        this.graph_type = graph_type;
    }

    @Column(name = "description", length = 1024)
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
